Se hai cliccato lascia un TUO commento nel muro della vergogna
Discover gists
// How to use CoreLocation to get your location Speed, Floor, timestamp, Course Direction, Altitude above sea level | |
//TODO: Step 1 #################################################################### | |
// First of all import "CoreLocation" | |
import CoreLocation | |
//TODO: Step 2 #################################################################### |
Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.
- Follow standard conventions.
- Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
- Boy scout rule. Leave the campground cleaner than you found it.
- Always find root cause. Always look for the root cause of a problem.
#!/usr/bin/env bash | |
# Inspired by https://github.com/ThePrimeagen/.dotfiles/blob/602019e902634188ab06ea31251c01c1a43d1621/bin/.local/scripts/tmux-sessionizer | |
# Just for zellij | |
# alows you to use `fzf` to navigate into a desire folder and either start or attach into a zellij session | |
# If you run it from inside zellij, it will open the newly selected folder in a new pane | |
# Demo of the original: https://youtu.be/bdumjiHabhQ?t=269 | |
# 1. Place the script in your path |
Lecture 1: Introduction to Research — [📝Lecture Notebooks] [
Lecture 2: Introduction to Python — [📝Lecture Notebooks] [
Lecture 3: Introduction to NumPy — [📝Lecture Notebooks] [
Lecture 4: Introduction to pandas — [📝Lecture Notebooks] [
Lecture 5: Plotting Data — [📝Lecture Notebooks] [[
Nginx can be configured to route to a backend, based on the server's domain name, which is included in the SSL/TLS handshake (Server Name Indication, SNI).
This works for http upstream servers, but also for other protocols, that can be secured with TLS.
- at least nginx 1.15.9 to use variables in ssl_certificate and ssl_certificate_key.
- check
nginx -V
for the following:... TLS SNI support enabled
WebCatalog is a tool to easily create desktop apps from websites. It's an awesome tool, but the free version (Basic account) limits you to 5 apps.
However, I came up with a simple workaround to trick WebCatalog into letting you install as many apps as you want:
All WebCatalog apps are stored at %LocalAppData%\Programs\WebCatalogApps
.
On startup, WebCatalog makes a list of your installed apps by looking at this folder.
If we make it so WebCatalog cannot find this folder, it won't think we have any apps installed, and it will let us install more.
/** | |
* Generate signature for ZoomMtg JSSDK. | |
* | |
* @param string $api_key You REST API Key | |
* @param string $api_secret You REST API Secret | |
* @param int $meeting_number The meeting number you are creating the signature for | |
* @param int $role Role that this signature is for; 0 for participant, 1 for host | |
* | |
* @return string Returns the signature string | |
* |